package com.css.apps.task.job;

import java.util.HashMap;
import java.util.Map;

public class JobMapUtil {
	private static Map<String, Object> jobMap = null;
	private static JobMapUtil instance;
	public static synchronized JobMapUtil getInstance() {
		if (instance == null) {
			jobMap = new HashMap<String, Object>();
			instance = new JobMapUtil();
		}
		return instance;
	}
	public String get(String key) {
		return (String) jobMap.get(key);
	}
	public void set(String key, String beforeJobState) {
		jobMap.put(key, beforeJobState);
	}
}
